package o;

import android.content.Context;
import android.text.TextUtils;

public class bwa implements cub<String> {
    private static Object ˏ = new Object();
    private static d ॱ;

    public static class d {
        private int ˊ;
        private boolean ˋ;
        private fjx ˎ;

        public boolean ˋ() {
            return this.ˋ;
        }

        public void ˏ(boolean z) {
            this.ˋ = z;
        }

        public fjx ˊ() {
            return this.ˎ;
        }

        public void ˏ(fjx o_fjx) {
            this.ˎ = o_fjx;
        }

        public int ˎ() {
            return this.ˊ;
        }

        public void ˋ(int i) {
            this.ˊ = i;
        }
    }

    public /* synthetic */ void ˏ(Context context, Object obj) {
        ˋ(context, (String) obj);
    }

    public void ˋ(Context context, String str) {
        fjx o_fjx = null;
        if (!TextUtils.isEmpty(str)) {
            boolean ˏ;
            int i;
            bqx.ˊ("ForumPushTokenHandler", "ForumPushTokenHandler ,uploadPushToken");
            synchronized (ˏ) {
                if (ॱ == null) {
                    ˏ = euf.ˎ().ˏ();
                    i = 0;
                } else {
                    ˏ = ॱ.ˋ();
                    i = ॱ.ˎ();
                    o_fjx = ॱ.ˊ();
                    ॱ = null;
                }
            }
            new bwc().ˋ(ˏ, str, i, o_fjx);
        }
    }

    public static synchronized void ˊ(d dVar) {
        synchronized (bwa.class) {
            ॱ = dVar;
        }
    }
}
